<style>
#mainmenu li {
float:left;
}
#mainmenu li.a {
display:block;
width:60px;
}
</style>
<ul id="mainmenu">
<?php

if ( !$this->Session->check('User') ) {
	
	echo "<li>" . $this->Html->link('Login', array('controller' => 'users', 'action' => 'login')) . "</li>";
	echo "<li>" . $this->Html->link('Register', array('controller' => 'users', 'action' => 'register')) . "</li>";	
	
} else {

	$currentUser = $this->Session->read('User');
	
	switch( $currentUser['User']['access_level'] ) {
		
		//superuser
		case '0':

			echo "<li>" . $this->Html->link('Home', array('controller' => 'pages', 'action' => 'home')) . "</li>";
			echo "<li>" . $this->Html->link('Player Archives', array('controller' => 'players', 'action' => 'main')) . "</li>";
			echo "<li>" . $this->Html->link('Player Reports', array('controller' => 'pages', 'action' => 'home')) . "</li>";
			echo "<li>" . $this->Html->link('Customer Support', array('controller' => 'pages', 'action' => 'home')) . "</li>";
			echo "<li>" . $this->Html->link('Logout', array('controller' => 'users', 'action' => 'logout')) . "</li>";
			break;
		
		//scout
		case '1': 
			break;
			
		//manager
		case '2': 
			echo "<li>" . $this->Html->link('Home', array('controller' => 'pages', 'action' => 'home')) . "</li>";
			echo "<li>" . $this->Html->link('Add Player', array('controller' => 'players', 'action' => 'add')) . "</li>";
			echo "<li>" . $this->Html->link('Roster', array('controller' => 'players', 'action' => 'manager_roster')) . "</li>";
			
		//player
		case '3': 
			break;
		
	}
	
	echo "<li>" . $this->Html->link('Logout', array('controller' => 'users', 'action' => 'logout')) . "</li>";
			
	
	
	
}
?>
</ul>